package Test05;

public class Text {
    public static void main(String[] args) {
        try {
            Student s1=new Student("张三", 10, 100,"nan");
        }catch (AgeException ageException){
            System.out.println("年龄异常："+ageException.getMessage());
        }catch (SexException sexException){
            System.out.println("性别异常" + sexException.getMessage());
        }
        System.out.println("程序结束！");
    }
}
